home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / src / lang.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-16  |  3.2 KB  |  134 lines

  1. /*      LANG.H
  2.  *
  3.  * Destination language dependent macros and conditional compilation
  4.  *
  5.  * $Id: lang.h,v 1.9 1997/01/16 18:41:59 pekangas Exp $
  6.  *
  7.  * Copyright 1996,1997 Housemarque Inc.
  8.  *
  9.  * This file is part of the MIDAS Sound System, and may only be
  10.  * used, modified and distributed under the terms of the MIDAS
  11.  * Sound System license, LICENSE.TXT. By continuing to use,
  12.  * modify or distribute this file you indicate that you have
  13.  * read the license and understand and accept it fully.
  14. */
  15.  
  16. #ifndef __LANG_H
  17. #define __LANG_H
  18.  
  19.  
  20. #ifdef __WC32__
  21.     #define CALLING __cdecl
  22.     #define GLOBALVAR
  23.     #define __C__
  24.     #define __PROTMODE__
  25.     #define __32__
  26.     #define NOEMS
  27.     #define __DPMI__
  28.     #define __FLATMODE__
  29.     #define EMPTYARRAY
  30.  
  31.     #ifdef __cplusplus
  32.         /* Throw a couple of Watcom C++ watnings out of our way to level 9
  33.            - I have no idea how to work around these in the code while
  34.            maintaining Visual C compatibility */
  35.         #pragma warning 604 9
  36.         #pragma warning 594 9
  37.     #endif
  38. #else
  39. #ifdef __VC32__
  40.     #define CALLING cdecl
  41.     #define GLOBALVAR
  42.     #define __C__
  43.     #define __PROTMODE__
  44.     #define __32__
  45.     #define NOEMS
  46.     #define __DPMI__
  47.     #define __FLATMODE__
  48.     #define __WIN32__
  49.  
  50.     /* Disable warning about 0-sized arrays in structures: */
  51.     #pragma warning(disable:4200)
  52.  
  53.     #define EMPTYARRAY
  54. #else
  55. #ifdef __LINUX__
  56.     #define CALLING
  57.     #define GLOBALVAR
  58.     #define __C__
  59.     #define __PROTMODE__
  60.     #define __32__
  61.     #define NOEMS
  62.     #define __FLATMODE__
  63.     #define NOTIMER
  64.     #define SUPPORTSTREAMS
  65.  
  66.     #define EMPTYARRAY 0
  67. #else
  68.     #error NO COMPILER DEFINED!
  69. #endif
  70. #endif
  71. #endif
  72.  
  73. #ifdef __16__
  74.     typedef unsigned char U8;
  75.     typedef signed char S8;
  76.     typedef unsigned short U16;
  77.     typedef signed short S16;
  78.     typedef unsigned long U32;
  79.     typedef signed long S32;
  80.     typedef unsigned int UINT;
  81.     typedef signed int SINT;
  82. #else
  83.     typedef unsigned char U8;
  84.     typedef signed char S8;
  85.     typedef unsigned short U16;
  86.     typedef signed short S16;
  87.     typedef unsigned long U32;
  88.     typedef signed long S32;
  89.     typedef unsigned int UINT;
  90.     typedef signed int SINT;
  91. #endif
  92.  
  93. #if defined(__WINDOWS__) || defined(__NT__) || defined(__VC32__)
  94.     #define SUPPORTSTREAMS
  95.     #define __WIN32__
  96. #endif
  97.  
  98. #define RCSID(x) x
  99.  
  100.  
  101. #endif
  102.  
  103.  
  104. /*
  105.  * $Log: lang.h,v $
  106.  * Revision 1.9  1997/01/16 18:41:59  pekangas
  107.  * Changed copyright messages to Housemarque
  108.  *
  109.  * Revision 1.8  1996/09/28 08:12:40  jpaana
  110.  * Enabled SUPPORTSTREAMS for Linux
  111.  *
  112.  * Revision 1.7  1996/09/01 19:03:52  pekangas
  113.  * Removed a couple of warnings from Watcom C++ in C++ mode
  114.  *
  115.  * Revision 1.6  1996/07/16 20:21:00  pekangas
  116.  * Added support for Visual C
  117.  *
  118.  * Revision 1.5  1996/07/13 17:29:08  pekangas
  119.  * Removed cdecl calling convention redefinition pragma
  120.  *
  121.  * Revision 1.4  1996/05/26 16:44:22  pekangas
  122.  * Defined SUPPORTSTREAMS and __WIN32__ when compiling for NT
  123.  *
  124.  * Revision 1.3  1996/05/24 16:58:22  pekangas
  125.  * Added #define EMPTYARRAY - used to declare empty arrays at the end of a structure: type array[EMPTYARRAY] to gain portability.
  126.  *
  127.  * Revision 1.2  1996/05/24 16:20:36  jpaana
  128.  * Added __LINUX__
  129.  *
  130.  * Revision 1.1  1996/05/22 20:49:33  pekangas
  131.  * Initial revision
  132.  *
  133. */
  134.